<%--
  Created by IntelliJ IDEA.
  User: John Cage
  Date: 2020/11/14
  Time: 9:29
  To change this template use File | Settings | File Templates.
--%>
<c:if test="${!empty accountBean.myList}">
    <p>Pet Favorites <br />
        Shop for more of your favorite pets here.</p>
    <ul>
        <c:forEach var="product" items="${accountBean.myList}">
            <li>
            <a href="viewProduct?productId=${product.productId}">
                ${product.name}
            </a>
                (${product.productId})</li>
        </c:forEach>
    </ul>

</c:if>